import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/support/swpmstationpersonguard/page',
    method: 'get',
    params: query
  })
}

export function getObj(id) {
  return request({
    url: '/support/swpmstationpersonguard/' + id,
    method: 'get'
  })
}

export function setGuardStatus(userCode, flag) {
  return request({
    url: `/support/swpmstationpersonguard/${userCode}/${flag}`,
    method: 'put'
  })
}
